﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/MasterPages/Dialog.Master" AutoEventWireup="true" CodeBehind="GRBaseInfoForm.aspx.cs" Inherits="DMS.Web.Modules.ArchivesManagement.GRBaseInfoForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="server">
    个人基本信息
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainHolder" runat="server">
<script type="text/javascript">
    function uploadTemplate() {
        var template = "/Resources/Templates/基本信息导入模板-单位.xls";
        var fileInfo = OpenFileUploaderWithFile("", template);
    }

    function uploadTemplate1() {
        var template = "/Resources/Templates/资料信息导入模板-单个.xls";
        var fileInfo = OpenFileUploaderWithFile("批量导入模板", template);
    }

    function exportList() {
        window.open('/Resources/Templates/资料信息导入模板-单个.xls');
    }

    function deleteRecord(obj) {
        if (confirm('确定要删除该条记录？')) {
            $(obj).parent().parent().hide();
            alert('删除成功！');
        }
    }

    function searchForm() {
        $('#MainHolder_gvList tr').hide();
        $('.searchResult').show();
    }

    function openForm() {
        window.open("ArchInfoForm.aspx");
    }
    </script>
    <fieldset>
    <legend>
        基本信息
    </legend>

    <div id="divContent" style="padding-top: 5px;" runat="server">
        <table cellpadding="1" cellspacing="2" border="0" class="orderformitem" width="98%">
            
            <tr>
                <th>
                    <nobr>
                        档案盒编号：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="PointName" runat="server">CQ-GR-0000001</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="PointName"
                        runat="server" ErrorMessage="请输入！"  ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    <nobr>
                        档案盒所在位置：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server">A排第1行第1列</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="PointName"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        个人社保号：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox2" onblur="if(this.value=='441624900123'){alert('该社保号已经存在，请勿重复添加！');$(this).focus();}" runat="server">441624900123</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="PointName"
                        runat="server" ErrorMessage="请输入！"  ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    <nobr>
                        缴费人姓名：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox3" runat="server">张三</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="PointName"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        身份证号码：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox11" runat="server">440683198809112870</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" ControlToValidate="PointName"
                        runat="server" ErrorMessage="请输入！"  ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    <nobr>
                        联系电话：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox14" runat="server">13430987678</asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        纳税编码：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox4" onblur="if(this.value!='')if(!confirm('该纳税编码已经存在，您确定要继续添加？'))this.value='';" runat="server">1416249873123</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="PointName"
                        runat="server" ErrorMessage="请输入！"  ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    <nobr>
                        缴费单位类型：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox5" runat="server">企业</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="PointName"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr>
                <th>
                    <nobr>
                        社保登记日期：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox7"  onClick="WdatePicker()" runat="server"></asp:TextBox>
                </td>
                <th>
                    <nobr>
                        参保人数（人）：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox10" runat="server" onblur="if(parseInt(this.value)!=this.value){alert('请输入合法数字！');this.value='';$(this).focus();}">1</asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        参保险种：
                    </nobr>
                </th>
                <td colspan="3">
                    <asp:CheckBox ID="CurrentPage" OnClick="CheckChange(this)" CssClass="checkboxGroup1" Text="养老" runat="server"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="CheckBox1" OnClick="CheckChange(this)" CssClass="checkboxGroup1" Text="工伤" runat="server"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="CheckBox2" OnClick="CheckChange(this)" CssClass="checkboxGroup1" Text="失业" runat="server"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="CheckBox3" OnClick="CheckChange(this)" CssClass="checkboxGroup1" Text="医疗" runat="server"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="CheckBox4" OnClick="CheckChange(this)" CssClass="checkboxGroup1" Text="生育" runat="server"/>
                </td>
            </tr>
        <tr>
            <th>
                <nobr>
                    专管员：
                </nobr>
            </th>
            <td>
                <asp:TextBox ID="TextBox12"  runat="server"></asp:TextBox>
            </td>
            <th>
                <nobr>
                    
                </nobr>
            </th>
            <td>
               
            </td>
                
            </tr>
            
            <tr>
                <th>
                    <nobr>
                        备注：
                    </nobr>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="TextBox13" TextMode="MultiLine" Rows="5" Width="96%" runat="server"></asp:TextBox>
                </td>
            </tr>
    </table></div>
    </fieldset>

    <fieldset>
    <legend>
        资料信息列表
    </legend>
    <div class="search">
                <!----------- 查询信息 ------------------>
                <table width="100%" cellpadding="0" cellspacing="0" style="padding: 5 0 5 5">
                    <tr>
                        <td class="form">
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <th>
                                        所属年月：
                                    </th>
                                    <td>
                                        <asp:DropDownList ID="ddlArea" runat="server" Width="55px">
                                            <asp:ListItem Text="全部"></asp:ListItem>
                                            <asp:ListItem Text="2011"></asp:ListItem>
                                            <asp:ListItem Text="2010"></asp:ListItem>
                                            <asp:ListItem Text="2009"></asp:ListItem>
                                            <asp:ListItem Text="2008"></asp:ListItem>
                                            <asp:ListItem Text="2007"></asp:ListItem>
                                            <asp:ListItem Text="2006"></asp:ListItem>
                                            <asp:ListItem Text="2005"></asp:ListItem>
                                            <asp:ListItem Text="2004"></asp:ListItem>
                                            <asp:ListItem Text="2003"></asp:ListItem>
                                            <asp:ListItem Text="2002"></asp:ListItem>
                                            <asp:ListItem Text="2001"></asp:ListItem>
                                        </asp:DropDownList>
                                        年
                                        <asp:DropDownList ID="DropDownList1" runat="server" Width="50px">
                                            <asp:ListItem Text="全部"></asp:ListItem>
                                            <asp:ListItem Text="1"></asp:ListItem>
                                            <asp:ListItem Text="2"></asp:ListItem>
                                            <asp:ListItem Text="3"></asp:ListItem>
                                            <asp:ListItem Text="4"></asp:ListItem>
                                            <asp:ListItem Text="5"></asp:ListItem>
                                            <asp:ListItem Text="6"></asp:ListItem>
                                            <asp:ListItem Text="7"></asp:ListItem>
                                            <asp:ListItem Text="8"></asp:ListItem>
                                            <asp:ListItem Text="9"></asp:ListItem>
                                            <asp:ListItem Text="10"></asp:ListItem>
                                            <asp:ListItem Text="11"></asp:ListItem>
                                            <asp:ListItem Text="12"></asp:ListItem>
                                        </asp:DropDownList>
                                        月
                                    </td>                                    
                                    <th>
                                        档案名称：
                                    </th>
                                    <td>
                                        <asp:TextBox TextMode="MultiLine" Height="22px" ID="txtCarryNo" runat="server" Width="150px"></asp:TextBox>
                                    </td>
                                    <th style="width: 100px">
                                         档案类型：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TextBox6" runat="server" Width="150px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        形成日期：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TextBox8" onClick="WdatePicker()" runat="server" Width="70px"></asp:TextBox>
                                        至
                                        <asp:TextBox ID="TextBox15" onClick="WdatePicker()" runat="server" Width="70px"></asp:TextBox>
                                    </td>
                                    <th>
                                        保管起始日期：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="txtBeginInitialTime" onClick="WdatePicker()" runat="server" Width="70px"></asp:TextBox>
                                        至
                                        <asp:TextBox ID="txtEndInitialTime" onClick="WdatePicker()" runat="server" Width="70px"></asp:TextBox>
                                    </td>
                                    <th>
                                        到期日期：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TextBox16" onClick="WdatePicker()" runat="server" Width="70px"></asp:TextBox>
                                        至
                                        <asp:TextBox ID="TextBox17" onClick="WdatePicker()" runat="server" Width="70px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <th style="width: 100px">
                                         姓名：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="txtApplier" runat="server" Width="150px"></asp:TextBox>
                                    </td>
                                    <th>
                                        是否销毁：
                                    </th>
                                    <td>
                                        <asp:DropDownList ID="DropDownList2" runat="server" Width="50px">
                                            <asp:ListItem Text="全部"></asp:ListItem>
                                            <asp:ListItem Text="是"></asp:ListItem>
                                            <asp:ListItem Selected="True" Text="否"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <th>
                                       
                                    </th>
                                    <td>
                                       
                                    </td>
                                </tr>
                                
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        <div align="left" style="padding: 5 0 0 0">
            <span class="search"  style="padding: 2 0 2 2">
                <asp:CheckBox ID="CheckBox5" OnClick="CheckChange(this)" CssClass="checkboxGroup1" Text="全选当前页" runat="server"/>
                <asp:CheckBox ID="AllPage" OnClick="CheckChange(this)" CssClass="checkboxGroup2" Text="全选所有" runat="server"/>
            </span>&nbsp;&nbsp;
            <a onclick="searchForm();" id="MainHolder_btnSearch" class="linkbtn _searchBtn" href="#"><span>查询</span></a>
            <asp:LinkButton CssClass="linkbtn" ID="LinkButton6" OnClientClick="exportList();"  runat="server"><span>数据导出</span></asp:LinkButton><%--onclick="ExportClick"--%>
            <asp:LinkButton CssClass="linkbtn" ID="LinkButton1" OnClientClick="uploadTemplate1();return false;" runat="server"><span>数据导入</span></asp:LinkButton><%--onclick="ExportClick"--%>
            <asp:LinkButton CssClass="linkbtn" ID="LinkButton2" OnClientClick="openForm();return false;" runat="server"><span>新增资料信息</span></asp:LinkButton><%--onclick="ExportClick"--%>
            <asp:LinkButton CssClass="linkbtn" ID="btnPrint" runat="server"><span>打印</span></asp:LinkButton><%--OnClick="PrintClick"--%>
            <a onclick="if(confirm('确认要将所选资料信息销毁？'))alert('销毁成功！');" id="A1" class="linkbtn _searchBtn" href="#"><span>销毁</span></a>
            <asp:LinkButton CssClass="linkbtn" ID="btnDelayReply" OnClientClick="javascript:delayReply();return false;" Visible="false" runat="server"><span>超时回复</span></asp:LinkButton>
            <asp:LinkButton CssClass="linkbtn" ID="btnExceptionReply" OnClientClick="javascript:delayReply('exception');return false;" Visible="false" runat="server"><span>异常反馈</span></asp:LinkButton>
        </div>
    <!----------- 数据列表 ------------------>
            <div>
	            <table cellspacing="1" cellpadding="0" rules="all" class="dg_borderstyle" border="0" border="1" id="MainHolder_gvList">
		            <tr class="dg_headerstyle searchResult">
			            <th scope="col">
                            
                                    </th><th scope="col">
                            所属年度</th><th scope="col">
                            档案名称</th><th scope="col">
                            档案类型</th><th scope="col">
                            所属月份</th><th scope="col">
                            形成日期</th><th scope="col">
                            保管起始日期</th><th scope="col">
                            保管年限</th><th scope="col">
                            到期日期</th><th scope="col">
                            姓名</th><th scope="col">
                            张数</th><th scope="col">
                            扫描件数</th>
                            <th>是否销毁</th>
                            <th scope="col">
                            <nobr>
                            操作</nobr></th>
                            
		            </tr>
                    <tr class="dg_itemstyle gs searchResult">
			            <td style="width:20px;">
                            <input name="ctl00$MainHolder$gvList$ctl02$chkItem" type="checkbox" id="MainHolder_gvList_chkItem_0" class="_selectItem" value="b99563fb-8c9f-47ac-b045-7717d805e646,CS" />
                        </td>
                        <td>2011</td>
                        <td> 
                            <a href="ArchInfoForm.aspx" target="_blank">
                                和平县社会保险费个人缴费登记表
                            </a>
                        </td>
                        <td>登记类</td>
                        <td>12</td>
                        <td>2011/10/17</td>
                        <td>2012/1/1</td>
                        <td>10</td>
                        <td>2022/1/1</td>
                        <td></td>
                        <td>
                            3
                        </td>
                        <td>
                            0
                        </td>
                        <td>否</td>
                        <td>
                            <a href="ArchInfoForm.aspx" target="_blank">
                                打开
                            </a>
                            <a href="javascript:void(0)"  onclick="uploadTemplate();" >
                                上传扫描件
                            </a>
                            <a onclick="deleteRecord(this)" href="javascript:void(0)">删除</a>
                        </td>
		            </tr>
                    <tr class="dg_alternatingitemstyle gs">
			            <td style="width:20px;">
                            <input name="ctl00$MainHolder$gvList$ctl02$chkItem" type="checkbox" id="Checkbox6" class="_selectItem" value="b99563fb-8c9f-47ac-b045-7717d805e646,CS" />
                        </td>
                        <td>2011</td>
                        <td> 
                            <a href="ArchInfoForm.aspx" target="_blank">
                                身份证复印件
                            </a>
                        </td>
                        <td>综合类</td>
                        <td>12</td>
                        <td>2011/10/17</td>
                        <td>2012/1/1</td>
                        <td>10</td>
                        <td>2022/1/1</td>
                        <td>张三</td>
                        <td>
                            1
                        </td>
                        <td>
                            1
                        </td>
                        <td>否</td>
                        <td>
                            <a href="ArchInfoForm.aspx" target="_blank">
                                打开
                            </a>
                            <a  href="javascript:void(0)"  onclick="uploadTemplate();">
                                上传扫描件
                            </a>
                            <a onclick="deleteRecord(this)" href="javascript:void(0)">删除</a>
                        </td>
		            </tr>
                </table>
            </div>
    </fieldset>
</asp:Content>

<asp:Content ID="ctFooter"  ContentPlaceHolderID="FooterHolder" runat="server">
<asp:LinkButton ID="btnSave" CssClass="linkbtn" runat="server" OnClick="btnSave_Click"
        CausesValidation="true"><span>保存</span></asp:LinkButton>&nbsp;&nbsp;
<a href="javascript:window.close();" class="linkbtn"><span>关闭</span></a>
</asp:Content>